package com.hightrast.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hightrast.service.api.domain.vo.menu.QueryRastUserMenuVo;
import com.hightrast.service.api.entity.RastRoleMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色菜单表 Mapper 接口
 * </p>
 *
 * @author hx
 * @since 2025-01-11
 */
public interface RastRoleMenuMapper extends BaseMapper<RastRoleMenu> {

    /**
     * 获取用户角色下的菜单
     * @return
     */
    List<QueryRastUserMenuVo> selectUserMenus(@Param("userId") Long userId);

}
